﻿using OnHook.Business.Model;
using OnHook.Business.Vo.UserInfo;
using OnHook.Domain.Entities;

namespace OnHook.Business.IServices
{
    /// <summary>
    /// 用户服务
    /// </summary>
    public interface IUserService
    {
        /// <summary>
        /// 检查是否有此用户
        /// </summary>
        /// <param name="model"></param>
        /// <param name="updateUser"></param>
        /// <returns></returns>
        Task<UserInfo> CheckUserInfoAsync(OpenUserInfoModel model, bool updateUser);

        /// <summary>
        /// 登录，其实就是生成tkn并记录
        /// </summary>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<LoginUserVo> LoginUser(UserInfo userInfo);
    }
}
